package com.xiaotu.common.model;

import com.xiaotu.common.util.Constants;

/**
 * @类名 SpiderLogModel
 * @日期 2017年2月9日
 * @作者 高海军
 * @功能 整个爬虫任务的日志实体类
 */
public class SpiderLogModel
{
	private String seriesNo;// 任务序列号
	private String jobType;// 任务名称
	private int jobNature = Constants.LogConstants.TASK_NATURE_NORMAL;// 任务性质
	private int servType = Constants.LogConstants.SERV_SPIDER;// 业务类型
	private String spiderStatus;// 任务状态:running运行中，stopped完成
	private long startTime;// 开始时间
	private long endTime;// 结束时间
	private long runningTime;// 已经运行的时间，单位ms
	
	private long targetTotal;// 爬取对象总量
	private long finishedTarget;// 已完成的数量
	private long leftTarget;// 剩余的数量
	private long errorTarget;// 错误的数量
	private long secondsPerPage;// 每次采集的平均耗时
	
	private String exception;
	private String message;
	
	private long timestamp;
	
	public String getSeriesNo()
	{
		return seriesNo;
	}
	
	public void setSeriesNo(String seriesNo)
	{
		this.seriesNo = seriesNo;
	}
	
	public String getJobType()
	{
		return jobType;
	}
	
	public void setJobType(String jobType)
	{
		this.jobType = jobType;
	}
	
	public int getServType()
	{
		return servType;
	}
	
	public void setServType(int servType)
	{
		this.servType = servType;
	}
	
	public String getSpiderStatus()
	{
		return spiderStatus;
	}
	
	public void setSpiderStatus(String spiderStatus)
	{
		this.spiderStatus = spiderStatus;
	}
	
	public long getStartTime()
	{
		return startTime;
	}
	
	public void setStartTime(long startTime)
	{
		this.startTime = startTime;
	}
	
	public long getEndTime()
	{
		return endTime;
	}
	
	public void setEndTime(long endTime)
	{
		this.endTime = endTime;
	}
	
	public long getRunningTime()
	{
		return runningTime;
	}
	
	public void setRunningTime(long runningTime)
	{
		this.runningTime = runningTime;
	}
	
	public long getTargetTotal()
	{
		return targetTotal;
	}
	
	public void setTargetTotal(long targetTotal)
	{
		this.targetTotal = targetTotal;
	}
	
	public long getFinishedTarget()
	{
		return finishedTarget;
	}
	
	public void setFinishedTarget(long finishedTarget)
	{
		this.finishedTarget = finishedTarget;
	}
	
	public long getLeftTarget()
	{
		return leftTarget;
	}
	
	public void setLeftTarget(long leftTarget)
	{
		this.leftTarget = leftTarget;
	}
	
	public long getTimestamp()
	{
		return timestamp;
	}
	
	public void setTimestamp(long timestamp)
	{
		this.timestamp = timestamp;
	}
	
	public long getSecondsPerPage()
	{
		return secondsPerPage;
	}
	
	public void setSecondsPerPage(long secondsPerPage)
	{
		this.secondsPerPage = secondsPerPage;
	}
	
	public long getErrorTarget()
	{
		return errorTarget;
	}
	
	public void setErrorTarget(long errorTarget)
	{
		this.errorTarget = errorTarget;
	}
	
	public int getJobNature()
	{
		return jobNature;
	}
	
	public void setJobNature(int jobNature)
	{
		this.jobNature = jobNature;
	}
	
	public String getException()
	{
		return exception;
	}
	
	public void setException(String exception)
	{
		this.exception = exception;
	}
	
	public String getMessage()
	{
		return message;
	}
	
	public void setMessage(String message)
	{
		this.message = message;
	}
	
}
